<extend name="Index/index"/>

<block name="register">
    <form action="" method="post">

        <div class="container mt30">
            <div class="row">
                <div class="col-md-2 text-right pay_name" >收货人:</div>
                <div class="col-md-10 pay_name">{{$payInfo.address_username}}</div>
                <div class="col-md-2 text-right pay_name" >联系电话:</div>
                <div class="col-md-10 pay_name">{{$payInfo.address_tel}}</div>
                <div class="col-md-2 text-right pay_name" >收货地址:</div>
                <div class="col-md-10 pay_name">{{$payInfo.address_name}}</div>

                <if condition="!empty($payInfo['is_coupon'])">
                    <div class="col-md-2 text-right pay_name" >优惠券减免:</div>
                    <div class="col-md-10 pay_name">{{$payInfo.is_coupon}} 元</div>
                </if>

                <if condition="!empty($payInfo['is_integral'])">
                    <div class="col-md-2 text-right pay_name" >积分减免:</div>
                    <div class="col-md-10 pay_name">{{$payInfo.is_integral}} 元</div>
                </if>
                <div class="col-md-2 text-right pay_name" >总金额:</div>
                <div class="col-md-10 pay_name" style="color: red">{{$payInfo.total}} 元</div>
                <div class="col-md-2 text-right pay_name" >支付方式:</div>
                <div class="col-md-10 pay_name">
                    <a href="{{:U('User/pay',array('order_id'=>$payInfo['order_id'],'type'=>$payInfo['type'],'gid'=>$payInfo['gid'],'uid'=>$payInfo['uid']))}}" class="btn btn-info">微信</a>
                    <a href="{{:U('User/pay',array('order_id'=>$payInfo['order_id'],'type'=>$payInfo['type'],'gid'=>$payInfo['gid'],'uid'=>$payInfo['uid']))}}" class="btn btn-info">支付宝</a>
                    <a href="{{:U('User/pay',array('order_id'=>$payInfo['order_id'],'type'=>$payInfo['type'],'gid'=>$payInfo['gid'],'uid'=>$payInfo['uid']))}}" class="btn btn-info">建设银行</a>
                    <a href="{{:U('User/pay',array('order_id'=>$payInfo['order_id'],'type'=>$payInfo['type'],'gid'=>$payInfo['gid'],'uid'=>$payInfo['uid']))}}" class="btn btn-info">工商银行</a>
                    <a href="{{:U('User/pay',array('order_id'=>$payInfo['order_id'],'type'=>$payInfo['type'],'gid'=>$payInfo['gid'],'uid'=>$payInfo['uid']))}}" class="btn btn-info">农业银行</a>
                </div>
                <div class="col-md-12 " style="margin-top: 300px"></div>
            </div>
        </div>
    </form>
    <script src="__PUBLIC__/Home/js/home.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Home/css/home.css">
    <script>
        //购物车总价格
        allSum();
        //把所有选中的商品id放到表单中
        allGoods();
    </script>
</block>